package cn.yunhe.service.impl;

import cn.yunhe.dao.IMemberDao;
import cn.yunhe.pojo.Member;
import cn.yunhe.pojo.ResultRequest;
import cn.yunhe.service.IMemberService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberServiceImpl implements IMemberService {

    @Autowired
    IMemberDao memberDao;

    Member member;

    public List<Member> queryAll(ResultRequest<Member> resultRequest) {
        PageHelper.startPage(resultRequest.getPage(), resultRequest.getLimit());
        return memberDao.queryAll(resultRequest.getData());
    }

}
